package com.baitai.system.domain.vo;

import com.baitai.common.annotation.Excel;
import com.baitai.common.core.domain.BaseEntity;
import com.baitai.system.domain.ProductInfo;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 抽奖规则对象 prize_draw_rule
 * 
 * @author ruoyi
 * @date 2024-07-11
 */
public class PrizeDrawRuleVo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 消耗积分 */
    private String expendPoints;

    /** 每日抽奖上限 */
    private String maxNumber;

    /** 中奖概率 */
    private String probabilityOfWinning;

    /** 每人每日抽奖次数 */
    private String prizeDrawNumber;

    /** 奖池类型 */
    private String prizeDrawType;

    /** 奖池生效时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date prizeDrawStartTime;

    /** 奖池结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date prizeDrawEndTime;

    private List<PrizeProductInfo> productInfoList;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setExpendPoints(String expendPoints)
    {
        this.expendPoints = expendPoints;
    }

    public String getExpendPoints()
    {
        return expendPoints;
    }
    public void setMaxNumber(String maxNumber)
    {
        this.maxNumber = maxNumber;
    }

    public String getMaxNumber()
    {
        return maxNumber;
    }
    public void setProbabilityOfWinning(String probabilityOfWinning)
    {
        this.probabilityOfWinning = probabilityOfWinning;
    }

    public String getProbabilityOfWinning()
    {
        return probabilityOfWinning;
    }
    public void setPrizeDrawNumber(String prizeDrawNumber)
    {
        this.prizeDrawNumber = prizeDrawNumber;
    }

    public String getPrizeDrawNumber()
    {
        return prizeDrawNumber;
    }

    public List<PrizeProductInfo> getProductInfoList() {
        return productInfoList;
    }

    public void setProductInfoList(List<PrizeProductInfo> productInfoList) {
        this.productInfoList = productInfoList;
    }

    public String getPrizeDrawType() {
        return prizeDrawType;
    }

    public void setPrizeDrawType(String prizeDrawType) {
        this.prizeDrawType = prizeDrawType;
    }

    public Date getPrizeDrawStartTime() {
        return prizeDrawStartTime;
    }

    public void setPrizeDrawStartTime(Date prizeDrawStartTime) {
        this.prizeDrawStartTime = prizeDrawStartTime;
    }

    public Date getPrizeDrawEndTime() {
        return prizeDrawEndTime;
    }

    public void setPrizeDrawEndTime(Date prizeDrawEndTime) {
        this.prizeDrawEndTime = prizeDrawEndTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("expendPoints", getExpendPoints())
                .append("maxNumber", getMaxNumber())
                .append("probabilityOfWinning", getProbabilityOfWinning())
                .append("prizeDrawNumber", getPrizeDrawNumber())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
